Outdoor unit programming system

ABSTRACT

A system that provides a wireless broadband connection between base stations and customer sites is described. The system includes indoor units within the base stations and customer sites and communicate across cables to outdoor units. The indoor units link to routers, switches and other devices and services. The outdoor units transmit and receive wireless data and send it to the indoor units. The indoor units can store software instructions in the outdoor unit. This allows the indoor units to automatically detect problems with outdoor unit and download new software to them in case of an error.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates to wireless communication systems, and moreparticularly to a wireless communication system that provides telephone,data and Internet connectivity to a plurality of users.

2. Description of Related Art

Several systems are currently in place for connecting computer users toone another and to the Internet. For example, many companies such asCisco Systems, provide data routers that route data from personalcomputers and computer networks to the Internet along conventionaltwisted pair wires and fiber optic lines. These same systems are alsoused to connect separate offices together in a wide area data network.

However, these systems suffer significant disadvantages because of thetime and expense required to lay high capacity communications cablesbetween each office. This process is time consuming and expensive. Whatis needed in the art is a high capacity system that provides data linksbetween offices, but does not require expensive communication cables tobe installed.

Many types of current wireless communication systems facilitate two-waycommunication between a plurality of subscriber radio stations orsubscriber units (either fixed or portable) and a fixed networkinfrastructure. Exemplary systems include mobile cellular telephonesystems, personal communication systems (PCS), and cordless telephones.The objective of these wireless communication systems is to providecommunication channels on demand between the subscriber units and thebase station in order to connect the subscriber unit user with the fixednetwork infrastructure (usually a wired-line system). Several types ofsystems currently exist for wirelessly transferring data between twosites. For example, prior art wireless communication systems havetypically used a Code Division Multiple Access (CDMA), Time DivisionMultiple Access (TDMA) or Frequency Division Multiple Access (FDMA) typesystem to facilitate the exchange of information between two users.These access schemes are well known in the art.

Some systems use a combination of indoor units that reside within abuilding and outdoor units that are typically mounted on the rooftop.The indoor unit connects to other devices that communicate user dataacross the wireless system. The outdoor unit typically is connected toan antenna for communicating with other base stations or hubs within thesystem. Within a conventional outdoor unit is software and hardware forcontrolling outdoor unit functions. As can be imagined, if the softwarewithin the outdoor unit becomes corrupted, or needs updating, it must bereprogrammed. Unfortunately, conventional outdoor unit systems arereprogrammed from serial port interfaces on the outdoor unit. Thisrequires a technician to access the outdoor unit on the roof. Moreover,there can be a significant time lag from the time the outdoor unitsoftware becomes disabled to the time a technician can get on site for arepair.

Accordingly, what is needed in the art is a simple, effective, on sitesystem for reprogramming software in the outdoor unit of a wirelesscommunication system. The present invention provides such a system.

SUMMARY OF THE INVENTION

One embodiment of the invention is customer premise equipment for use ina wireless communication system having a base station and customersites, the customer premise equipment that includes an outdoor unitcomprising: a transmit path having first tuneable sub-components; areceive path having second tuneable sub-components; a detectorconfigured to generate a detector signal; a controller configured toreceive said detector signal, to tune said first tuneable sub-componentsand said second tuneable sub-components in response to receivedcommands, to transmit information representative of said detector signalin response to a command, and a memory configured to store instructionsto control the operation of the controller. This embodiment furtherincludes: an indoor unit having a modem for modulating/demodulating datatransmitted between the base stations and the customer sites, saidindoor unit further having a processor configured to transmit commandsto said micro controller, to detect a failure in the outdoor unit, andif a failure is detected in the outdoor unit then to write newinstructions to said memory.

Another embodiment is a system for storing updated software instructionsto an outdoor unit in a wireless communication system, wherein thewireless communication system has a plurality of base stations andcustomer sites. This embodiment includes: an outdoor unit comprisingsoftware instructions stored in a memory; an indoor unit having a copyof the stored software instructions; and first instructions within theindoor unit for detecting a failure in the outdoor unit and, responsiveto said failure, storing new software instructions to the memory in saidoutdoor unit.

One other embodiment of the invention is a method for updating softwareinstructions in an outdoor unit of a wireless communication system,wherein the wireless communication system has a plurality of basestations and customer sites, including: detecting a failure of theoutdoor unit to properly initialize; reading software instructions fromone or more memory partitions in the outdoor unit; comparing the readsoftware instructions with a stored copy the instructions; identifyingany altered memory partitions that comprise instructions differing fromthe stored copy; and storing new software instructions to the alteredmemory partitions.

Still another embodiment of the invention is a method for programming anoutdoor unit of a wireless communication system, wherein the wirelesscommunication system has a plurality of base stations and customersites. This embodiment provides: instructing the outdoor unit to changeto a designated operational mode; determining whether the outdoor unitchanges to the designated operational mode, wherein a determination thatthe outdoor unit did not change indicates an outdoor unit failure;reading software instructions from one or more memory partitions in theoutdoor unit; comparing the read software instructions with a storedcopy the instructions; identifying any altered memory partitions thatcomprise instructions differing from the stored copy; and storing newsoftware instructions to the altered memory partitions.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of an exemplary broadband wirelesscommunication system for use with the present invention.

FIG. 2 is a block diagram of cell site used in the wirelesscommunication system of FIG. 1.

FIG. 3 is a block diagram of an embodiment of an Indoor Unit module fromthe cell site illustrated in FIG. 2.

FIG. 4 is a block diagram of an embodiment of an Outdoor Unit modulefrom the cell site illustrated in FIG. 2.

FIG. 5 is a block diagram of an embodiment of the micro controllercircuitry within the Outdoor unit.

FIG. 6 is a state diagram of one embodiment of the initializationprocess within an Outdoor unit.

FIG. 7 is a flow diagram of one embodiment of a preliminary checkoutprocess undertaken in the Outdoor unit.

FIG. 8 is a flow diagram of one embodiment of a handshaking processbetween the Indoor unit and the Outdoor unit.

FIG. 9 is a flow diagram of one embodiment of a timing measurement of adetector process undertaken in the Outdoor unit.

FIG. 10 is a flow diagram of one embodiment of a loopback processundertaken in the Outdoor unit.

FIG. 11 is a block diagram of a commercial customer site that includescustomer premises equipment.

FIG. 12 is a block diagram of a residential customer site that includescustomer premises equipment.

FIG. 13 is a flow diagram of one embodiment of a process for programmingan outdoor unit.

FIG. 14 is a block diagram of one embodiment of memory partitions in anoutdoor unit.

FIG. 15 is a flow diagram of the software update procedure that is partof the process for programming an outdoor unit illustrated in FIG. 13.

Like reference numbers and designations in the various drawings indicatelike elements.

DETAILED DESCRIPTION OF THE INVENTION

Throughout this description, the preferred embodiment and examples shownshould be considered as exemplars, rather than as limitations on thepresent invention.

A. Overview of the Wireless Communication System

As described above, embodiments of the present invention relate to abroadband wireless communication system. The system is particularlyuseful for linking a plurality of customers and businesses together toshare data or access the Internet. In general, the system provides basestations that are centrally located from a plurality of customer sites.The base stations are linked to services desired by customers, such asInternet access, satellite access, telephone access and the like. Withinthe base stations are communication devices, such as routers, switchesand systems for communications with the desired services. In addition,each base station includes one or more antennas for connectingwirelessly with one or more customer sites.

A customer desiring, for example, access to the Internet will install aset of Customer Premises Equipment (CPE) that includes an antenna andother hardware, as described in detail below, for providing a high speedwireless connection to one or more base stations. Through the high-speedwireless connection, the customer is provided with access to theInternet or to other desired services. As discussed below, the datatransmitted wirelessly between a base station and a customer site istermed herein “user data”. Of course, at each customer site, a pluralityof simultaneous computers can be provided with wireless access to thebase station through the use of hubs, bridges and routers.

In one preferred embodiment, the base station comprises a plurality ofindoor units that provide an interface between the routers, switches andother base station equipment and a plurality of outdoor units (ODU) thattransmit/receive data from the customer sites. Each indoor unittypically includes, or communicates with, a modem formodulating/demodulating user data going to/from the outdoor unit.

Preferably, each of the indoor units is connected to only one outdoorunit and each IDU/ODU pair transmits and receives user data with aunique frequency. This format provides a base station with, for example,10, 20, 30 or more IDU/ODU pairs that each communicate with customersites using unique frequencies. This provides the base station with ameans for communicating with many customer sites, yet dividing thebandwidth load between several frequencies. Of course, a base stationthat servers a small community of customer sites might only have asingle IDU/ODU pair.

Each ODU at the base station is normally located outside of the physicalbuilding and includes an integrated broadband antenna fortransmitting/receiving wireless user data packets to/from the customersites. Of course, the antenna does not need to be integrated with theODU, and in one embodiment is located external to the ODU.

The ODU and the IDU communicate with one another through a broadbandcable connection, such as provided by an RG-6 cable. In one embodimentthe ODU and IDU communicate across about 10 to 100 feet of cable. Inanother embodiment, the ODU and IDU communicate across about 100 to 500feet of cable. In yet another embodiment, the ODU and the IDUcommunicate across about 500 to 1000 feet of cable.

In one embodiment, the IDU controls functions within the ODU by sendingcontrol messages in addition to the user data stream. The IDU passesmessages to the ODU in order for the IDU to control certain aspects ofthe ODU's performance. For example, the IDU may determine that thesystem needs to be tuned in order to maximize the signal strength of theuser data being received. The IDU will send a control message in theform of a frequency shift key (FSK) modulated signal, as describedbelow, to the ODU along the broadband cable. The control messagepreferably includes the identity of a variable voltage attenuator (VVA)or other type of attenuator in the ODU and a new setting for thedesignated VVA. An onboard micro controller in the ODU reads andinterprets the control message coming from the IDU and sends the propersignals to the designated VVA.

Once the ODU has adjusted the designated VVA, the micro controller inthe ODU sends a response in the form of a response message back alongthe broadband cable to the IDU. The response message preferably includesa confirmation of the new VVA setting, or other data to confirm that therequested control message has been fulfilled. The following discussionprovides a detailed listing and the structure of exemplary controlmessages and response messages that can be transmitted between the IDUand the ODU.

It should be realized that the base stations and the customer sites eachhave indoor units and outdoor units that function similarly to provide acommunication link between the external antenna and the electronicsystems in the interior of the buildings. Of course, in one embodimentwithin the customer sites, the indoor units are connected throughrouters, bridges, Asynchronous Transfer Mode (ATM) switches and the liketo the customer's computer systems, which can also includetelecommunication systems. In contrast, within the base stations theindoor units are connected to the routers, switches and systems thatprovide access to the services desired by the customers.

Referring now to FIG. 1, a wireless communication system 100 comprises aplurality of cells 102. Each cell 102 contains an associated cell site104 which primarily includes a base station 106 having at least one basestation indoor unit (not shown). The base station receives and transmitswireless user data through base station outdoor units 108. Acommunication link transfers control signals and user data between thebase station indoor unit (IDU) and the base station outdoor unit (ODU).The communication protocols between the base station IDU and basestation ODU will be discussed more thoroughly in the following sections.

Each cell 102 within the wireless communication system 100 provideswireless connectivity between the cell's base station 106 and aplurality of customer premises equipment (CPE) located at fixed customersites 112 throughout the coverage area of the cell 102. The customerpremises equipment normally includes at least one indoor unit (notshown) and one customer ODU 110. Users of the system 100 can be bothresidential and business customers. Each cell will preferably serviceapproximately 1,000 residential subscribers and approximately 300business subscribers. As will be discussed below, each customer ODU 110is positioned to receive and transmit user data from and to the basestation ODU 108. As discussed above, the customer IDU (not shown) islocated within the site 112 and provides a link between the customer'scomputer systems to the ODU.

As shown in FIG. 1, the cell sites 104 communicate with a communicationshub 114 using a communication link or “back haul” 116. The back haul 116preferably comprises either a fiber-optic cable, a microwave link orother dedicated high throughput connection. In one embodiment thecommunications hub 114 provides a data router 118 to interface thewireless communications network with the Internet. In addition, atelephone company switch 120 preferably connects with the communicationshub 114 to provide access to the public telephone network. This provideswireless telephone access to the public telephone network by thecustomers. Also, the communications hub 114 preferably provides networkmanagement systems 121 and software that control, monitor and manage thecommunication system 100.

The wireless communication of user data between the base station ODU 108and customer ODU 110 within a cell 102 is advantageously bi-directionalin nature. Information flows in both directions between the base stationODU 106 and the plurality of Customer ODU 110. The base station ODU 106preferably broadcasts single simultaneous high bit-rate channels. Eachchannel preferably comprises different multiplexed information streams.The information in a stream includes address information which enables aselected Customer ODU 110 to distinguish and extract the informationintended for it.

The wireless communication system 100 of FIG. 1 also preferably providestrue “bandwidth-on-demand” to the plurality of Customer ODU 110. Thus,the quality of the services available to customers using the system 100is variable and selectable. The amount of bandwidth dedicated for agiven service is determined by the information rate required by thatservice. For example, a video conferencing service requires a great dealof bandwidth with a well controlled delivery latency. In contrast,certain types of data services are often idle (which then require zerobandwidth) and are relatively insensitive to delay variations whenactive. One mechanism for providing an adaptive bandwidth in a wirelesscommunication system is described in U.S. Pat. No. 6,016,211 issued onJan. 18, 2000, the disclosure of which is hereby incorporated byreference in its entirety.

1. Cell Site

FIG. 2 illustrates a block diagram of the cell site 104 of FIG. 1 usedin the wireless communication system 100. As described above, the cellsite 104 preferably comprises the base station 106 and at least one basestation ODU 108. As shown in FIG. 2, the base station also preferablyincludes at least one base station indoor unit 122, back-haul interfaceequipment 124, an Asynchronous Transfer Mode (ATM) switch 126, a videoserver control computer 128 and direct broadcast satellite (DBS)receiver equipment 130. The base station can also alternatively includea video server (not shown in FIG. 2). The indoor unit 122 sends controlmessages and user data to the ODU. The indoor unit 122 also receivesresponse messages and user data from the base station outdoor unit 108.

The back-haul interface equipment 124 allows the base station tobi-directionally communicate with the hub 114 (FIG. 1). The ATM switch126 functions at the core of the base station 106 to interconnect thevarious services and systems at appropriate service and bandwidthlevels.

The base station 106 is preferably modular in design. The modular designof the base station 106 allows the installation of lower capacitysystems that can be upgraded in the field as capacity needs dictate. TheIDU 122 in conjunction with the ODU 108 performs both the media accessprotocol layer and the modulation/de-modulation functions thatfacilitate high-speed communication over the wireless link. The IDU 122preferably is connected via a broadband cable 129 to the base stationoutdoor unit 108 which is preferably mounted on a tower or a poleproximate the base station 106. The base station outdoor unit 108preferably contains high-frequency radio electronics (not shown) andantenna elements for transmitting user data to the customer sites.

2. Indoor Unit

Referring to FIG. 3, a more detailed block diagram of the indoor unit122 is provided. As illustrated, the indoor unit 122 links the basestation equipment 124, 126, 128, and 130 to the base station outdoorunit 108. The IDU 122 is preferably under the control of acommunications processor 132. One preferred processor is the MotorolaMPC8260 PowerQUICC II (PQII). As illustrated, the communicationsprocessor 132 connects through a PowerPC bus 134 to a modem 135.

The modem 135 includes a Field Programmable Gate Array (FPGA) 136 thatstores instructions for controlling other subcomponents of the IDU 122.For example, the FPGA 136 communicates with a Frequency Shift Key (FSK)modem 138 in order to send FSK modulated control messages from the IDUthrough the broadband cable 129, to the outdoor unit 108. A low bandpass filter 139 is provided between the cable 129 and the FSK modem 138.In an alternate embodiment, an Application Specific Integrated Circuit(ASIC) replaces the FPGA in order to provide similar functions.

As is discussed in detail below, the IDU and ODU communicate with oneanother using messages. The IDU sends control messages to the ODU, andthe ODU responds with response messages. This communication allows theIDU to request data from ODU detectors, and then send commandsinstructing the ODU to reset subcomponents in order to be moreefficient.

Thus, control messages are FSK modulated and sent from the IDU to theODU. Similarly, response messages from the ODU to the IDU aredemodulated by the FSK modem 138 and then interpreted by instructionswith the FPGA 136. These control messages and response messages, andtheir data structure and format, are discussed in detail below. In oneembodiment, the transmission baud rate of the FSK modem 138 is 115 kbpswith one start bit, one stop bit and one parity bit. Of course, otherdata transfer speeds and formats are contemplated to be within the scopeof the invention. Moreover, the FSK modem 138 preferably transmits andreceives in frequencies between 6–8 MHz.

Messages between the IDU and ODU are preferably transmittedindependently of the other signals being passed along the cable 129. Inone embodiment, the ODU acts like a slave in that it does not originatemessages, but only responds to control messages it receives from theIDU.

As illustrated, power is provided to the ODU through a DC power supply140 that provides, in one embodiment, 48V DC to the ODU. A 20 MHzreference signal 142 is also transmitted across the cable 129 in orderto keep components in the IDU and ODU synchronized with one another.

The communications processor 132 is also linked to an Input/Output port150 that attaches to the routers, switches and systems within the basestation. The communications processor 132 receives packet data from theInput/Output port 150 and transmits it to a modem 153 for modulationdemodulation. The modulated data signal is then placed on a 140 MHz mainsignal 154 for high throughput transmission to the ODU 108. It should berealized that the data transmission along the 140 MHz main signal canoccur simultaneously with the control message and response message datathat is Frequency Shift Key modulated across the cable 129.

In order for the IDU and ODU to effectively and rapidly switch betweenreceiving and transmitting data modes, a 40 MHz switching signal 158 isalso linked to the communications processor 132 and carried on the cable129. The 40 MHz switching signal 158 is used within the system to switchthe ODU and IDU between transmit and receive modes, as will be discussedbelow with reference to FIG. 4.

In one embodiment, if the 40 MHz signal is present, the ODU and IDUenter transmit mode to send user data from the base station ODU tocustomer ODUs. However, if the 40 MHz signal is not present, the ODU andIDU enter receive mode wherein user data being transmitted from otherODU's is received by the base station ODU. The timing of the switchingsignal is controlled by instructions residing in the FPGA 136. Forexample, in a half-duplex Time Division Duplex architecture, theswitching signal 158 is preferably set to switch between receive andtransmit modes. However, in a full duplex architecture where user datais constantly being received, the switching signal 158 can be programmedto switch between a transmit mode and a null mode.

3. Outdoor Unit

Now referring to FIG. 4, a more detailed block diagram of the outdoorunit 122 is provided. As illustrated, the outdoor unit 122 receivescontrol messages and user data from the IDU across the cable 129.Depending on the state of the 40 MHz switching signal 142 (shown in FIG.3), a set of switches 160 a,b in the ODU are either in transmit orreceive mode. In transmit mode, user data and control messages are sentfrom the IDU to the ODU. In receive mode, user data and responsemessages are sent from the ODU to the IDU. As illustrated and discussedwith reference to FIG. 5, a microcontroller 400 is linked to thecomponents within the ODU in order to manage data flow.

The microcontroller 400 communicates with a multiplexer 170 thatseparates the signals carried on the cable 129. Within themicrocontroller 400 is a programmable memory 161 that storesinstructions for gathering the response data and forming responsemessages for transmission to the IDU. In addition, the instructionswithin the memory 161 read incoming control messages from the IDU andsend control signals to sub-components of the ODU. A FSK modem 165 isconnected to the multiplexer 170 and microcontroller 400 formodulating/demodulating messages to/from the IDU.

a. Transmit Mode

If the ODU is in transmit mode, the modulated user data being sent fromthe IDU along the 140 MHz main signal is first routed through themultiplexer 170 to the switch 160 a. If the switch is set to transmitmode, the main signal is sent to an IF UP CONVERSION block 200 thatconverts the 140 MHz signal to an approximately 2.56 GHz (S band)signal. As illustrated, the IF UP CONVERSION block 200 first provides avariable voltage attenuator (VVA) 210 that is used to compensate forfrequency fluctuations from transmission along the cable 129. The signalthen passes to a detector 212 that measures power levels aftercompensation at the cable input.

Although the following discussion relates to a system that transmitsuser data within the millimeter wave band at frequencies ofapproximately 28 GHz, the system is not so limited. Embodiments of thesystem are designed to transmit user data at frequencies, for example,of 10 GHz to 66 GHz.

The user data signal is then up-converted to an S band signal at an IFUP CONVERSION block 216 through an associated local oscillator block219. The local oscillator block 219 preferably includes an S bandfrequency generator 220. In one embodiment, the frequency generator 220includes a National Semiconductor LMX 2301 or Analog Devices ADF41117.The signal is then sent through a second VVA 234 that is used for poweradjustment at the S band frequency.

Once the signal has been up-converted to the S band frequency, it issent to an RF UP CONVERSION block 250. The RF UP CONVERSION block 250links to a millimeter wave band frequency generator 255 within the localoscillator block 219 for up-converting the 2.56 GHz signal to anapproximately 28 GHz signal. The up-converted signal is then passedthrough a VVA 264 to provide for millimeter wave band power adjustment.Once the signal has been adjusted by the VVA 264 it is sent to a PowerAmplifier 268 and then to an output power detector 269. The signal isfinally passed through the switch 160 b and out an antenna 270.

b. Receive Mode

If the ODU is in receive mode, user data is received along a 28 GHzsignal (LMDS band) and passed through the antenna 270 and into an RFDOWN CONVERSION BLOCK 272. Within the RF DOWN CONVERSION BLOCK 272 is aLow Noise Amplifier (LNA) 275 which boosts the received 28 GHz signal.The signal is then sent to a VVA 280 for power adjustment at themillimeter wave band after the LNA 275. The received 28 GHz signal isthen sent to a RF down converter 285 for down conversion to a 2.56 GHz(S band) signal. The RF down converter 285 communicates with the LocalOscillator block 219 to reduce the incoming signal to the S band range.

After the received signal has been down converted to 2.56 GHz, it istransmitted to an IF DOWN CONVERSION block 290. Within the IF DOWNCONVERSION BLOCK 290 is a VVA 292 for adjusting the power at the S bandprior to down conversion. Following adjustment by the VVA 292, thereceived signal is passed to a detector 294 for measuring power leakagefrom the transmission path during signal transmission. The signal isthen passed to an IF down converter 298 which uses the local oscillatorblock 219 to down convert the S band signal to a 140 MHz signal fortransmission across the cable 129.

After being converted to a 140 MHz signal, the received user data ispassed through another VVA 300 for power adjustment at the low frequencyband and then a detector 304 to measuring power levels beforetransmission across the cable 129 (4 dBm at the cable output).

C. Message Traffic Between the ODU and IDU

It should be realized that the control messages sent by the IDU to theODU can control components of the ODU. For example, in a preferredembodiment, the controlled components in the ODU are the VVAs andfrequency synthesizers. Response messages from the ODU to the IDU arealso generated to include data from the detectors, temperature sensorand other components described above. As can be imagined, controlmessages are sent by the IDU and then interpreted by the microcontrollerin the ODU. After interpreting the message, the microcontroller sendsthe appropriate adjustment signals to components of the ODU.

Referring to FIG. 5, a hardware schematic of circuitry within the ODU isillustrated. As shown, the ODU is controlled by the micro controller 400that manages data flow within the ODU. In one embodiment, the microcontroller is a Motorola MC68HC908GP20 high-performance 8-bit microcontroller. Control messages from the IDU are sent across the cable 129to the micro controller 400 in the ODU and then forwarded to theappropriate ODU component. In addition data signals generated by the ODUcomponents, such as detectors, are sent from the component to the microcontroller 400. The micro controller 400 builds a response message thatis then transmitted via FSK modulation to the IDU.

As shown in FIG. 5, messages are sent from the IDU along the cable 129through a 12 Mhz low pass filter 404 to a FSK receiver 408 in the ODU.In one embodiment, the FSK receiver is a Motorola MC13055 FSK receiver.The receiver 408 accepts the FSK modulated data from the IDU and inputsit into the micro controller 400. As also indicated, the microcontroller 400 outputs response messages to the IDU through a voltagecontroller oscillator 410.

The micro controller 400 is also in communication with the localoscillator block 219. In addition a digital to analog (D/A) converter415 communicates with the micro controller 400 in order to control theVVAs within the ODU. In one embodiment, the D/A converter is an AnalogDevices model AD8803 D/A converter.

The micro controller 400 also provides an input from a temperaturesensor in order to provide for temperature compensation of the ODUmeasurements. In one embodiment, the temperature sensor is a NationalSemiconductor LM50 temperature sensor.

As discussed previously, the IDU transmits FSK modulated controlmessages to the ODU to control particular components. The structure andformat of the control messages sent by the IDU and the response messagesreturned by the ODU are discussed in detail below.

B. Message Format

In one embodiment, the maximum data rate of FSK modulated messages thatcan be handled by the Micro Controller is 125 Kbps. However, in a morepreferred embodiment, and for compatibility with a conventional personalcomputer, FSK data is transmitted at a 115.2 kbps data rate.Accordingly, the protocol between the Micro Controller 400 andcommunications processor 124 can be kept as simple as possible and atthe same time flexible for future changes. The message structurepresented in the following section takes into account this flexiblesimplicity. In general, the messages passed between the ODU and the IDUare delivered byte after byte with no delay. In one embodiment, in theODU, a time gap of more then 0.5 msec between bytes will cause the ODUto re-synchronize on the next preamble.

1. Message Structure

In the preferred data format, each message, starts with a fixed preamblethat is used to identify the beginning of a message. Following thepreamble an identifier is sent. The identifier is unique per message,i.e., a specific identifier defines completely the structure of thefollowing message information fields.

The variable information within each message is preferably sent afterthe identifier. In addition, a CRC is added at the end of each messageas an integrity check of the message. The Micro Controller 400 (seeFIGS. 4 and 5) in the ODU receives a control message from the IDU,controls the required components in the ODU and prepares a responsemessage. As soon as the IDU finishes sending the control message to theODU, it switches from transmit mode to receive mode. The ODU then beginsto transmit FSK modulated response messages to the IDU.

The preferred data structure of the messages are as follows:

Preamble Identifier Information CRC-8

-   -   Preamble—the preamble is 1 Byte field and it is always 00.    -   Identifier—the identifier is 1 Byte field and unique for each        message.    -   Information—the information filed is variable length according        to the message data being sent. The information field is always        padded to be an integer number of bytes.    -   CRC-8—added for each message for error control. In the IDU, the        CRC-8 is implemented inside the FPGA 130 (FIG. 3). The CRC-8 is        implemented in software in the ODU Micro Controller 400 (FIGS. 4        and 5).

In general, the messages are delivered byte after byte with no delay.When the ODU detects an error, it waits until the next preamble. Noresponse messages are sent back from the ODU to the IDU.

2. Message Traffic

In order to keep the protocol simple, only one control message and oneresponse message are preferably used during normal operation mode. This“MEGA” control message/response message includes all the possible basiccontrol/response messages. Additional control messages are needed forsuch functions such as software updates and technical information suchas IDU, ODU serial numbers and software versions. If new control orresponse messages are needed in the future, they can be easilyimplemented by following the data structure represented above. Table 1lists preferable control/response messages and their unique identifiers.

TABLE 1 Control and Response Messages Message Direction IdentifierMaster IDU

 ODU 0x11 Identify IDU

 ODU 0x12 Identity IDU

 ODU 0x21 Unexpected Message IDU

 ODU 0x22 Set Mode IDU

 ODU 0x33 Test Control IDU

 ODU 0x34 Download Control IDU

 ODU 0x35 Download_Ack Control IDU

 ODU 0x53 Tune Control IDU

 ODU 0x66 Mega Control IDU

 ODU 0x96 Mega Response IDU

 ODU 0x69 Mega VVA IDU

 ODU 0x97 Mega Det IDU

 ODU 0x79 Cal Table Segment IDU

 ODU 0x44 Code Segment IDU

 ODU 0x55 Segment Received IDU

 ODU 0x45

In the following tables that describe message data fields, it is assumedthat the messages start with a preamble and identifier, and end with an8 bit CRC that is aligned to be in it's own byte.

a. Master Control Message

The Master control message is used in the initialization state for anIDU to identify itself as a Master IDU. During a master IDUconfiguration, the CPE preferably monitors the IDU/ODU link for a fewmilliseconds to determine if there is already a master present. The ODUthen responds with the same message.

TABLE 2 Master Control Message Field Bits Description IDU Identifier 3232 bit identifier of the IDU. Used to distinguish between multiple CPEsin an MDU.

b. Identify Control Message

The Identify control messages has no fields, but is simply the preamble,identifier (0x12), and CRC sent from the IDU to the ODU.

c. Identity Response Message

The Identity response message is the ODU's response to the Identifycontrol message from the IDU.

TABLE 3 Identity Response Message Field Bits Description ODU_Calibrated8 0x00

 ODU has not been calibrated 0x01

 ODU has been calibrated MaxTxPow 8 Transmission Power level desiredminus 45. Accordingly, values from 0 to 255 represent desired valuesfrom 45 to 300. MinRxPow 8 Minimum Receive Power FrequencyBand 8 ODUFrequency Band in GHz 24

 ODU uses 24 GHz Band 25

 ODU uses 25 GHz Band 28

 ODU uses 28 GHz Band 31

 ODU uses 31 GHz Band SW Version 32 ASCII Software version number.Example: SW version 135

 ‘0’, ‘1’, ‘3’, ‘5’ Flags 8 ODU Flags bit 0 (MSB) Reserved bit 1Reserved bit 2 Reserved bit 3 Reserved bit 4 Reserved bit 5 Reserved bit6 Tx MMW detector output is valid 0 No MMW detector 1 MMW detector validbit 7 (LSB) AFC Polarity 0 AFC Normal 1 AFC polarity inverted

d. Unexpected Response Message

The Unexpected Response Message is the response to a valid controlmessage which is not expected in the current mode. For example, receiptby the ODU of a Mega Control message during initialization, as couldhappen after a spontaneous reset of the ODU.

TABLE 4 Unexpected Response Message Field Bits Description Current Mode8 0x00 = Initialization State 0x01 = Normal Mode 0x02 = Loopback Mode(obsolete) 0x03 = Code Download Mode (obsolete) 0x04 = Cal TableDownload (obsolete) 0x05 = Normal 24 GHz (obsolete) 0x06 = ODU BootstrapMode 0x07 = ODU available for normal operation

e. Set Mode Control Message

The Set Mode control message is used by the IDU to change the state ofthe ODU. The ODU responds by repeating the Set Mode message to the IDUas a response message.

TABLE 5 Set Mode Control Message Field Bits Description New Mode 8 0x00= Initialization State 0x01 = Normal Mode 0x02 = Loopback Mode 0x05 =Normal 24 GHz (obsolete) 0x06 = ODU Bootstrap Mode 0x07 = ODU availablefor normal operation

f. Test Control Message

The Test Control Message is used by the IDU to instruct the ODU toperform some kind of test operation as described below. The general formof the message is shown in the table below:

TABLE 6 Test Control Message Field Bits Description Operation 8 Theparticular test being commanded Data Byte 1 8 Data pertinent to thatcommand if necessary Data Byte 2 8

i. Test Control Message—FSK Tone Generation

To conduct testing of the ODU it is useful to have the ODU generateeither of the continuous tones corresponding to a 0 or a 1. The formatis shown in the table below:

TABLE 7 Test Control Message - FSK tone generation Field BitsDescription Operation 8 0x1

 Transmit FSK Tone FSK_Tone 8 0x0

 transmit the ‘0’ tone 0x1

 transmit the ‘1’ tone Transmit 8 Number of seconds to generate the tone(0 . . . 255) Time

The FSK tone generation operation causes the ODU to generate either acontinuous ‘0’ tone, or ‘1’ tone for the specified number of seconds.

While the tone is being generated the ODU will not respond to controlmessages since the link is half duplex. When the specified time haselapsed the ODU will resume listening for control messages from the IDU.

ii. Test Control Message—Request Break Status (FSK Cutoff Frequency)

This command determines from the ODU if a “break” character has beendetected on the ODU/IDU message interface. The table below shows theformat of this message.

TABLE 8 Test Control Message - Request Break Status Field BitsDescription Operation 8 0x2

Request Break Status Reserved 8 Reserved 8

In virtually all cases, the ODU responds with aTest_Command:Break_Status_Report, indicating if it has detected a“break” character since the last request or not. The message is used totest the ODU FSK receive modem function. A “break” character beingdetected is the result of the ODU detecting a continuous series ofzeros. This can only happen by an external source injecting a pure lowtone into the ODU.

The cut-off frequency of ODU receive circuitry can be determined on atest stand by injecting different frequency tones onto the response datainterface and repeatedly requesting the ODU detected a “break”character. Eventually a frequency will be reached where the ODU does notdetect a break—hence the cut-off can be determined.

iii. Test Control Message—Break Status Report

This message is the response to the Request Break Status and is shown inthe table below:

TABLE 9 Test Control Message - Break Status Report Field BitsDescription Operation 8 0x3

Break Status Report Break_Status 8 0x0

]No break detected since previous request 0x1

Break detected since previous request Reserved 8

iv. Test Control Message—Tune Test

This message contains the response to the Test Control—Tune Test. It'slayout is show below:

TABLE 10 Test Control Message - Tune test Field Bits DescriptionOperation 8 Base Frequency in GHz (10–60) 27 => works for 28 GHz ODUsData Byte 16 Frequency offset from base in 100 kHz increments i.e. 1 =><Base Frequency>. 0001 GHz 1000 => <Base Frequency>. 1000 GHz 10000 =><Base Frequency + 1>. 0000 GHz

The Tune test message attempts to tune the ODU to the specifiedfrequency without regard to the valid frequency range for the ODU,therefore tuning outside of the normal range is permitted. The stepresolution of the command is 100 kHz. No range checking is performed sospecifying values too far beyond the valid range may have unpredictableresults. The ODU may not be able to tune to the precise frequencyspecified, when this occurs it tunes to the nearest frequency it can.

g. Tune Control Message

The Tune Control instructs the ODU to tune to a given frequencyspecified in units of 100 kHz. The ODU responds after performing thetuning operation by echoing the same Tune Control message back to theIDU and reporting the frequency to which the ODU is now tuned. If thespecified frequency is outside the valid frequency range for the ODU,the ODU does not retune. Therefore specifying a frequency of 0 is amechanism for querying the ODU as to the frequency to which it is tunedwithout changing the frequency.

The frequencies of 1 and 4294967295 (or FFFFFFFF hex) are reserved asspecial query-mode frequencies. If the ODU is told to tune to 0.0001GHz, the ODU will not retune but will respond with the minimum availablefrequency. For instance, a 28 GHz ODU would return the number 272000. Ifthe ODU is told to tune to 429496.7295 GHz, it will not retune but willrespond with the maximum available frequency, or 286500 for a 28 GHzODU.

TABLE 11 Tune Control Message Field Bits Description Frequency 32 Thefrequency in units of 100 kHz Eg. 28 GHz => 280,000 28.0001 GHz =>280,001

The ODU may not be able to tune to the precise in-band frequencyspecified, when this occurs it truncates the value to the nearestpossible frequency and tunes to that frequency instead.

24 GHz ODUs can be commanded to tune from 24.0000 GHz to 25.5000 GHz.

25 GHz ODUs can be commanded to tune from 25.0000 GHz to 25.5000 GHz.

28 GHz ODUs can be commanded to tune from 27.2000 GHz to 28.6500 GHz.

31 GHz ODUs can be commanded to tune from 29.8000 GHz to 31.5000 GHz.

h. Mega Control Message

The Mega Control is used by the IDU to instruct the ODU to change thevalues of Attenuators or the Frequency.

TABLE 12 Mega Control Field Bits Description Change Flags 5 1 bit perfield that may change b10000

Enable/Disable PA changed b01000

Rx Power Level changed b00100

Tx IF1 VVA changed b00010

Tx Power Level changed OR values to get combinations of fields changedFor Example, b01010

Rx Power Level and Tx Power Level both changed. Enable/Disable PA 1 1 =use 40 MHz switching signal 0 = disable PA Rx Power Level 10 Per Rx VVATable in section 1.2 of [1]. Tx IF1 VVA 8 0 to −30.5 dB in 0.2 dB stepsTx Power Level 9 0 to −60 dB in 0.2 dB steps LinkAcquired 1 1

Link is acquired. The ODU reports the value of the RxIF1 the detector 10used immediately following the start of the frame (corresponding to thearrival of the second byte of the Mega Control). The RSL output behavesnormally, but with a minimum level of 0.5 volts 0

Link is not acquired. The ODU reports the value of the RxIF1 detectorfrom the time period between any previous command and the current MegaControl. The RSL output is always 0 volts. Padding 14 For byte alignmentof CRC

i. Mega Response Message

The Mega Response message is the response to the Mega Control message.

TABLE 13 Mega Response Message Field Bits Description Rx IF1 Detector 8Temperature compensated and converted to the range −11 to 12 dBm,expressed in 0.2 dBm steps. Rx IF2 Detector or 8 Temperature compensatedand converted to Output Power the range 5 dBm to 22 dBm, expressed in0.2 Detector dBm steps. Tx IF1 Detector 8 Temperature compensated andconverted to the range −26 to −4 dBm, expressed in 0.2 dBm steps. Tx IF2Detector 8 Temperature compensated and converted to the range −5 to −39dBm, expressed in 0.2 dBm steps. Temperature 8 −35 to 85° C. Pad 5 Forbyte alignment of CRC. Can add additional alarms here in the future. RefPLL Lock 1 Alarm: 1 = fail Syn Lock 1 Alarm: 1 = fail 2.7 GHz Detect 1Alarm: 1 = fail

j. Mega VVA Control Message

The Mega VVA Control is used by the IDU to instruct the ODU to changethe values of Attenuators and the Frequency. Unlike the Mega Controlmessage, it contains the explicit VVA settings.

TABLE 14 Mega VVA Control Message Field Bits Description Rx IF1 VVA 8Explicit value to set Rx IF1 VVA Rx IF2 VVA 8 Explicit value to set RxIF2 VVA Rx MM VVA 8 Explicit value to set Rx MM VVA Tx IF1 VVA 8Explicit value to set Tx IF1 VVA Tx IF2 VVA 8 Explicit value to set TxIF2 VVA Tx MM VVA 8 Explicit value to set Tx MM VVA Padding 10 ChangeFlags 6 1 bit per field that may change b100000

Rx IF1 VVA changed b010000

Rx IF2 VVA changed b001000

Rx MM VVA changed b000100

Tx IF1 VVA changed b000010

Tx IF2 VVA changed b000001

Tx MM VVA changed OR values to get combinations of fields changed Forexample, b010100

Rx IF2 VVA and Tx IF1 VVA values have both changed

k. Mega Det Message

The Mega Det message is the response to the Mega VVA control.

TABLE 15 Mega Det Message Field Bits Description Rx IF1 Detector 8Actual detector value. Rx IF2 Detector 8 Actual detector value. Tx IF1Detector 8 Actual detector value. Tx IF2 Detector 8 Actual detectorvalue. Temperature 8 Actual detector value. Pad 5 For byte alignment ofCRC. Ref PLL Lock 1 Alarm: 1 = fail Syn Lock 1 Alarm: 1 = fail 2.7 GHzDetect 1 Alarm: 1 = fail

l. Download Control Message

The Download Control message is used by the IDU to instruct the ODU toperform some kind of test operation. The general form of the message isshown in the table below:

TABLE 16 Download Control Message Field Bits Description Operation 8 Theparticular test being commanded Data Bytes 88 Data pertinent to thatoperation if necessary

i. Download Control Message—Update Block

The ODU maintains a buffer in its internal RAM for accumulating data tobe written to flash memory. This is called the ROW buffer, and ispreferably 64 bytes in size. It is sub-divided into 8 blocks, each ofwhich is 8 bytes. A block is updated using this Update Block operation.The format of the operation is defined in the table below:

TABLE 17 Download Control Message - Update Block Field Bits DescriptionOperation 8 2

Update_Block <reserved> 8 0 Offset 8 Offset from the start of the ROWbuffer where the bytes being sent are to be placed, usually: 0, 8, 16,24, 32, 40, 48, 56 N_Bytes 8 Number of bytes to be copied to the ROWbuffer (0 . . . 8) Data_Bytes 64 Up to 8 bytes of data to be writtensequentially to the ROW buffer

ii. Download Control Message—Write_Row

This message initiates an attempt to write the current content of theROW buffer in the ODU to flash memory. The format of the operation isdefined in the table below:

TABLE 18 Download Control Message - Write Row Field Bits DescriptionOperation 8 3

Write_Row Flash_Address 16 Address in flash memory where the ROW buffershould be written. Must be a multiple of 64, and not be within the areareserved for the Boot_Module. <reserved> 72

iii. Download Control Message—Peek Memory

This message reads up to 4 bytes from the specified address in memory.The format of the operation is defined in the table below:

TABLE 19 Download Control Message - Peek Memory Field Bits DescriptionOperation 8 4

Peek Memory Address 16 Address in memory from which the bytes are to beretrieved. N_Bytes 8 Number of bytes (up to 4 to be retrieved).<reserved> 64

iv. Download Control Message—Software Reset

This message instructs the ODU software to reset. Control is immediatelypassed through to the address specified in the reset vector. This mimicsbehavior at power up. There can be a response to this message. Ifsuccessful, the ODU will behave as is it has just powered on, if not, itwill still be in the same state it was before the reset command had beenissued. The format of Software_Reset is defined in the table below:

TABLE 20 Download Control Message - Get_Partition_Info Field BitsDescription Operation 8 8

Software Reset <reserved> 88

v. Download Control Message—Get_Partition_Info

This message requests partition information on the specified partitionnumber. The ODU responds with a download_ack:partition_info_reportmessage containing the partition information requested. The format ofget_partition_info is defined in the table below:

TABLE 21 Download Control Message - Get_Partition_Info Field BitsDescription Operation 8 9

A Get_Partition_Info Partition_number 8 The partition number beingrequested 0 . . . 255 <reserved> 80

vi. Download Control Message—Request_CRC

This message requests the ODU to calculate a 16 bit CRC be calculatedover the specified range. The IDU uses the request to verify a partitionafter it has been downloaded. The ODU responds with adownload_ack:CRC_Report message containing the calculated CRC. Theformat of packet is defined in the table below:

TABLE 22 Download Control Message - Request_CRC Field Bits DescriptionOperation 8 12

Request_CRC Start Address 16 The address to start the 16-bit CRCcalculation Length 16 The number of bytes to run the check <reserved> 56

vii. Download Control Message—Get_Row_Buffer_Address

This message requests the address of the ODU ROW buffer. It is used byexternal software manipulating configuration and hardware parameters toretrieve the values of individual parameters from the ROW buffer usingthe Download:Peek_Memory command as its most primitive operation. TheODU responds with a Download_Ack: Row_Buffer_Address packet. The formatof Get_Row_Buffer_Address is defined in the table below:

TABLE 23 Download Control Message - Get_Row_Buffer_Address Field BitsDescription Operation  8 21

 Get_Row_Buffer_Address <reserved> 88

m. Download_Ack Control Message

This message contains the response from the ODU to download commandsthat generate a response.

i. Download_Ack Control Message—Memory_Report

This message is the response to a download:peek_memory command. Itreturns up to 4 bytes from the specified address in memory. The formatof the operation is defined in the table below:

TABLE 24 Download_Ack Control Message - Memory_Report Field BitsDescription Operation 8 5

 Memory Report Address 16 Address in memory where these bytes originate.N_Bytes 8 Number of bytes present. Data bytes 32 <reserved> 16

ii. Download_Ack Control Message—Partition_Info_Report

This message is the response to a download_get_partition_info command.It returns partition information for the partition number requested. Theformat of partition_info_report is defined in the table below:

TABLE 25 Download_Ack Control Message - Partition_Info_Report Field BitsDescription Operation 8 10

 Partition_Info_Report Partition_number 8 The partition number beingdescribed 0 . . . 255 Base_Address 16 The starting address of thepartition 0 - 0xffff Type 8 ‘O’ => Operational Software ‘C’ =>Calibration tables ‘H’ => Hardware parameters ‘B’ => Bootstrap moduleIs_Valid 8 0 => the partition is invalid 1 => the partition is validWrite_Count 16 Number of times this partition has been writtenVersion_Number 8 A version number indicating the revision of thepartition content 0 . . . 255

iii. Download_Ack Control Message—Row_Written

This message describes the ODU result of a Download:Write_Row processedby the ODU. Normally a write will succeed and the status below willreturn 0. If one or more blocks were not updated, or the ODU was unableto write all the blocks to flash memory correctly, it will respond witha status of 1, and the “Bit_Vector” field will indicate which blocks theODU has. A ‘1’ in a bit position indicates the block is present, a ‘0’indicates its absence. The remedy to this condition is to resend themissing blocks, and the attempt the write again. The format is shownbelow:

TABLE 26 Download_Ack Control Message - Row_Written Field BitsDescription Operation 8 11

 Row_Written Flash_Address 16 the address in flash memory where thewrite was attempted. Status 8 0 = row was written successfully to flashmemory 1 = some blocks in the ROW have not been updated, “Bit_Vector”indicates which blocks are missing 2 = the write to flash was notsuccessful, the Bit_Vector field indicates which blocks were notwritten. This can happen as the write count of the ODU flash memoryapproaches its 100 cycle limit. In an operational system this isindicates that ODU behavior may become erratic. 3 ==> the flash addressis not a legitimate address for the ODU 4 = flash contents at“flash_address” already contained the ROW buffer content, no write wasperformed Bit_Vector 8 If status = 1 or 4, bit vector contains a 0 ineach bit position where a block is missing. Block offset 0 is the LSB,block offset 56 is the MSB <reserved> 16

iv. Download_Ack Control Message—CRC_Report

This message reports a 16 bit CRC calculated by the ODU in response to aprevious Download:Request_CRC command. The format of packet is definedin the table below. The ODU includes the starting address and the lengthto identify the CRC being reported.

TABLE 27 Download_Ack Control Message - CRC_Report Field BitsDescription Operation 8 13

 CRC_Report Start_Address 16 The address to start the 16-bit CRCcalculation Length 16 The number of bytes to run the checkReported_Value 16 The calculated CRC value <reserved> 16

v. Download_Ack Control Message—Block_Updated

This message is in response to a previous Download:Update_Block. Theformat of the packet is defined in the table below. There are noconditions when an update should not be successful. The only possibilityfor not receiving a Download_Ack:Block_Updated message is that the ODUdid not receive the Download:Update_Block request. The remedy is tore-send the packet.

TABLE 28 Download_Ack Control Message - Block_Updated Field BitsDescription Operation 8 14

 Block_Updated <reserved> 8 0 Block_Offset 8 Offset from the start ofthe ROW buffer where the bytes being sent are to be placed, may be oneof: 0, 8, 16, 24, 32, 40, 48, 56 N_Bytes 8 Number of bytes to be copiedto the ROW buffer (0 . . . 7) Status 8 0 = Successfully copied, non-zeroan error occurred <reserved> 32

vi. Download_Ack Control Message—Row_Buffer_Address

This message is the response to the Download:Get_Row_Buffer_Addresscommand. It provides the absolute address of the Row buffer, which iswhere Calibration and Hardware parameters are maintained at runtime.This enables suitable external software to make temporary changes to theoperating values of these parameters and observer their effect on thesystem, without writing them to flash memory (an operation most oftenperformed when an ODU is being calibrated). The format of the packet isdefined in the table below:

TABLE 29 Download_Ack Control Message - Row_Buffer_Address Field BitsDescription Operation  8 22

 Row_Buffer_Address Address 16 The Address of the Row buffer <reserved>72

3. Error Detection

When the ODU detects an error in the control message, it normallydiscards the message. Since all control messages that are sent by theIDU are responded to by the ODU, the IDU detects the failure to receivea response message via a timeout.

The IDU, when acting as initiator, sends control messages and then waitsfor message responses. If the IDU doesn't receive any response messagesafter, for example, two (2) milliseconds, it resends the control messageagain. If it doesn't receive any response messages after sending severalcontrol messages in a row, the IDU takes appropriate corrective action.

4. Control of ODU Components

Table 30 summarizes the components that may be controlled in the ODU bythe IDU, their characteristics and the number of bits required toset/read their values.

TABLE 30 ODU Elements Controllable from IDU Component DescriptionDynamic Range/Bits VVA for Cable 140 MHz VVA used to 0 to −30.5 dB.Controlled Comp (210) compensate for cable loss via 8 bit word. VVA isfrom the IDU. controlled in 0.5 dB steps achievable through most of therange of the VVA. Tx IF2 VVA S-band VVA used to 0 to −30 dB. Controlledvia 7 (234) adjust transmit power of bit word in 0.5 dB steps. Used theS band frequency. in conjunction with Tx RF VVA (264). Tx RF VVA MM waveband VVA 0 to −30 dB. Controlled via 8 (264) used to adjust transmit bitword in 0.5 dB steps power. achievable. Used in conjunction with Tx IF2VVA (234). Rx IF1 VVA 140 MHz VVA used to 0 to −32 dB. Controlled via 8(300) adjust receive attenuation bit word. Used in conjunction prior totransmission with Rx IF2 VVA (292) and along the cable. Used for Rx RFVVA per (280). Automatic Gain Control (AGC). Rx IF2 VVA S-band VVA usedto −1 to −27 dB. Controlled via (292) adjust receive 8 bit word. Used incon- attenuation. Used for junction with Rx IF1 VVA such purposes asAGC. (300) and Rx RF VVA (280). Rx RF VVA MM wave band VVA 0 to −24 dB.Controlled via 8 (280) used to adjust receive bit word. Used inconjunction attenuation, for such with Rx IF1 VVA (300) and purposes asAGC. Rx IF2 VVA (292). Syn Freq Synthesizer frequency to 34possibilities space 25 MHz (220) be used. apart. Syn Ref Starting pointfor 0 to 23.75 MHz in 1.25 MHz (308) frequency mapping. This steps.parameter is dependant upon the Syn Ref Parameter. Enable/DisableEnables or disables the Enabled means use 40 MHz PA Power Amplifier,switching signal. (268) allowing transmission to Disable means no trans-the ODU with out mission regardless of state of transmission over the 40MHz switching signal. air. (Disable causes the 40 MHz switching signalto be ignored.) Typically used only in test modes. May be necessaryduring cable loss compensation.

Table 31 summarizes the response messages that can be sent from the ODUto the IDU. The bits used to control/read items are not necessarily whatwill appear in the user data making up the protocol.

TABLE 31 Response Messages Response Data Description Dynamic Range/BitsRx IF1 Detector 140 MHz detector located Approximately −11 to 12 (304)at the output of ODU to dB. Expressed as 8 bit cable. This detector canbe word. used to bring this to 4 dBm. Rx IF2 Detector S band detector.Can be (294) or Output used to measure Tx power Power Detector on the Rxpath during (not shown) transmission. Can also be used to determinetrans- mitter saturation points. Optionally the absolute output power atthe PA in dBm. Tx IF1 Detector 140 MHz detector at cable Approximately−4 to (212) input to the ODU. Used for −26 dB. Expressed as 8 cablecompensation. bit word. Tx IF2 Detector S band detector. Can be (230)used to determine transmitter saturation points. Temperature Temperaturedetector. −35 to 85° C. Ref PLL Lock Lock detect signal from the High =fail. 100 MHz reference clock. The synthesizer lock time is 200 msec.Syn Lock Lock detect signal from the High = fail. channel selectionsynthesizer. The synthesizer lock time is 1.5 msec. 2.7 GHz DetectDetects failure of the 2.7 High = fail. GHz local multiplier.C. Initialization of the System

1. Overview

Referring now to FIG. 6, a software state diagram 500 showing thepossible modes in which the ODU may operate is illustrated. Theinitialization process 500 of the Micro Controller in the ODU includes:

-   -   Initialization of all I/Os (clock generator, SCI, SPI, A/D etc.)    -   Reset the local oscillator to inhibit any transmission before        being tuned    -   Determine if the memory partitions for operational software,        calibration tables and configuration parameters are valid    -   Determine if memory partitions contents are mutually compatible    -   Establish communications with a master IDU.

On a power-on, or when a watchdog timer expires, the ODU resets andenters a preliminary checkout phase. This phase is explained morecompletely with reference to FIG. 7. Briefly, all peripherals are resetto a benign state and the ODU places itself in Mode 6 (504). The ODUthen automatically attempts to transition itself to Mode 7 (506). Thistransition entails performing a CRC test on all memory partitions in theODU to verify that the flash memory is correct and consistent. If it iscorrect, the initialization procedure in each partition is invoked. Thisverifies that the content of the memory partition is compatible with thecontent of any other memory partitions on which it depends. If allmemory partitions report compatibility the boot code transition issuccessful and the system moves to Mode 7, otherwise it remains in Mode6.

If the process 501 moves to Mode 7, a set_mode command is given by themicro controller and the system initiates normal operation bytransitioning the ODU to Mode 0 (512). From Initialization Mode 6, theonly valid transition to Mode 0 is through Mode 7, which requires allthe previous system tests be successful.

Note that in the State Diagram in FIG. 6, download commands are valid inboth Mode 6 and Mode 7 so on power-up, new software can always bedownloaded to the ODU even if all memory partitions are invalid.

While in Mode 0, the process 501 can also transition to a loopback Mode2 (516) and to a normal operational Mode 1 (520). These other Modes arediscussed more completely in reference to FIG. 10 below.

2. Preliminary Checkout (Mode 6)

FIG. 7 illustrates the flow of the first interactions between the IDU122 and ODU 108. A preliminary checkout process 600 begins with the ODU108 resetting its peripherals, checking its flash memory, and checkingits memory partition compatibility at a state 602.

Once this is complete, the IDU 122 sends a SET_MODE (7) command messagethat attempts to transition the ODU from the checkout mode 6 into Mode7. The ODU responds with a response message indicating its current mode.A determination of the ODU's current mode is then made by the IDU 122 ata decision state 610. If a determination is made that the ODU is stillin Mode 6, and did not transition to Mode 7, the checkout process 600moves to a state 614 to begin downloading new software to the ODU in anattempt to help the ODU transition to Mode 7.

However, if a determination was made at the decision state 610 that theODU was not still in Mode 6, the IDU then issues a SET_MODE (0) controlmessage to move the ODU into its operational mode (0). The checkoutprocess 600 then terminates at an end state 616.

When the IDU issues the SET_MODE (0) command, it learns several piecesof information from the response message. If there's no response itindicates that either the connection to the ODU is faulty or that theODU is broken in some way. If there is a response, then the statereturned in the response message indicates which of the three possiblestates the ODU is now in. From the response message the IDU candetermine if it must perform some remedial action on the ODU (see thedownload procedure described later), or if it can begin operation.

3. Handshaking Process

After the initialization processes of FIG. 7 are completed (identicalfor Base Station and CPE), a handshake process 800 begins, as shown inFIG. 8. In the handshake process 800, the Micro Controller in the ODUwaits for the first message from the IDU. Because of the complexity ofthe software in the IDU (whether CPE or base station), the ODU normallyfinishes initialization before the IDU.

The IDU then issues a SET_MODE (1) command message to transition the ODUinto Normal Operational Mode 1. This transition results in the ODUperforming the following functions:

Control the following components:

-   -   1. Set Receive (Rx) VVAs attenuation to minimum.    -   2. Set Transmit (Tx) VVAs attenuation to maximum.    -   3. Set reference frequency (LMX2301) to 100 MHz.    -   4. Disable the Power Amplifier

Measure test points.

Once complete, the process 800 then loops continuously, receivingresponse messages from the ODU and performing the actions dictated bythe control messages from the IDU. The most typical action in thisprocess in the ODU is:

The ODU receives a MEGA command from the IDU with instructions to alterthe values of the VVAs or Frequencies in the Frequency synthesizers and:

-   -   1. Reads the temperature (State 804).    -   2. Adjusts the settings received in the MEGA control message for        temperature, if necessary and applies the new values (State        808).    -   3. Calculates and applies the RSL voltage setting (State 810).    -   4. Reads detector values and adjusts values for temperature via        the calibration tables (State 812).    -   5. Reads the 3 lock/detect indicators.    -   6. Builds and transmits a mega response message.

4. Reading Detector Values

As shown in FIG. 9, a process 900 of reading ODU detector values isillustrated. The process 900 begins when the ODU measures the outputfrom the RxIF1 detector 304 (FIG. 4) at a precise instant (state 904) inorder to send this value in the Mega Response Message. Every time theODU receives the byte immediately following the preamble byte, it readsthe detector 304 at the state 904 and saves the result. Then it holdsthe detector in reset for 10 microseconds at a state 908. The process900 then de-asserts the reset signal at a state 914 and waits 10 moremicroseconds at a state 920. The process 900 then samples the RxIF1detector 304 again at a state 926 and saves the result. The VVAs andPower Amplifier are then set at a state 930 as commanded by the MEGAcontrol message.

A determination is then made at a decision state 934 whether or not theLinkAcquired bit was set in the Mega Control message. If theLinkAcquired bit was set, the ODU reports the measurement takenimmediately after the detector reset at a state 938. However, if theLinkAcquired bit was zero, the ODU reports the measurement takenimmediately before the detector reset at a state 940.

The process 900 then waits two milliseconds at a state 942 and proceedsto sample any remaining detectors in the ODU at a state 944. The Megaresponse message is then sent from the ODU to the IDU.

5. Loopback Mode

In the loopback mode process 1000 illustrated in FIG. 10, the ODU 108simply repeats back to the IDU 122 whatever message it has received. Itleaves the loopback mode when it receives the set mode control messageto transition to a different mode. No other work is performed duringloopback mode—no reading of control messages or setting of controlvalues. The control messages sent to the ODU by the IDU during loopbackmode preferably have a preamble, a CRC, and at most 14 additional bytes.Other than “set_mode” message data which must follow the formatdescribed above, the messages sent during loopback mode may be composedof any byte pattern.

6. Customer Premises Equipment

Although the previous discussion has focused on IDUs and ODUs that areinstalled as part of a base station, these devices are similarlyinstalled within each customer site for receiving and transmittingwireless data. As illustrated FIGS. 11 and 12 are block diagrams of thecustomer premises equipment (CPE) 110 shown in FIG. 1. As describedabove, the subscribers of the wireless communication system contemplatedfor use with the present invention may be either residential or businesscustomers. FIG. 12 is a block diagram of a preferred residential CPE110. FIG. 11 is a block diagram of a preferred business CPE 110.

As shown in FIG. 12, the residential CPE 110 preferably includes an ODU1140, IDU 1141 and a residential wireless gateway apparatus 1142. Theresidential gateway 1142 is preferably installed on a side of theresidence 1144. The residential gateway 1142 preferably includes anetwork interface unit (NIU) 1146 and a service gateway unit 1148. TheNIU 1146 performs the functions necessary to allow the residential userto communicate with the wireless communication system, such asperforming low frequency RF communication, modem and ATM functions.

The NIU 1146 performs the necessary communication interface functionsincluding airlink and protocol interface functions to allow theresidential user access to the network. The service gateway unit 1148allows the residential user to gain access to the services provided overthe communications system.

For example, as shown in FIG. 12, the service gateway unit 1148preferably includes an MPEG decoder, NTSC video interface, telephoneinterface and 10-baseT data interface. The residential gateway 1142interfaces to the various service access points within the residence1144. The residential gateway 1142 contains the necessary hardware andsoftware for interfacing to the radio communications airlink and fordriving various services into the residence 1144. In addition, byinterfacing with the telephone wiring 1147 within the residence 1144,the residential gateway 1142 is capable of providing a variety oftelephone services to the residence 1144.

Similarly, by interfacing with copper or co-axial wiring 1149 within theresidence 1144, the residential gateway 1142 is capable of providing10-baseT and other data services to equipment 1150 (such as a personalcomputer depicted in FIG. 12) within the residence 1144. Finally, theresidential gateway 1142 can also provide broadcast video anddata-centric television services to a plurality of television systems1152 by interfacing with standard cable television co-axial cabling 1154in the residence 1144. The residential gateway 1142 is designed in amodular fashion to service multiple data, telephone, and video lines.Thus, a single residential gateway 1142 is sufficiently flexible toaccommodate the communication needs of any residential customer.

FIG. 11 is a block diagram of the preferred business CPE 110′ of FIG. 1.The preferred business CPE 110′ is designed to provision and provideservices to a small business customer site 1112. As shown in FIG. 11,the business CPE 110′ preferably includes an ODU 108′ and IDU 122′. TheCPE 110′ also includes a business wireless gateway apparatus 142′. TheODU 108′ is preferably affixed to a business site building 144′ whilethe business gateway 142′ is preferably installed in a wiring closetwithin the business site building 144′.

The communication interfaces of the business gateway 142′ are similar tothose of the residential gateway 1142 (FIG. 12). However, the serviceinterfaces of the business gateway 142′ differ from those of theresidential gateway 1142. The business gateway 142′ preferably includesinterfaces capable of driving voice and data services typically used bysmall business customers. These include integrated services digitalnetwork (ISDN), local area network (LAN), PBX switching and otherstandard voice and data services.

As shown in FIG. 11, a “two-box” solution is presently contemplated forimplementing the business gateway 142′. An “off-the-shelf” multi-serviceconcentrator 1156 can be used to provide the business user services andto convert the outgoing data into a single transport stream. Thebusiness gateway 142′ also includes a wireless gateway apparatus 1158which contains the necessary hardware and software for interfacing tothe IDU and for driving various services into the business site building144′.

Alternatively, the wireless functionality provided by the businessgateway 142′ can be integrated into the multi-service concentrator 1156in order to reduce costs and provide a more integrated business gatewaysolution. Different types of multi-service concentrators 1156 can beused depending upon the size and needs of the business customer. Thus, anetwork provider can deploy a cost effective solution with sufficientcapabilities to meet the business customer's needs.

Various types of services can be provided to the business customer usingthe CPE 110′ of FIG. 11. For example, by providing standard telephonecompany interfaces to the business customer, the business CPE 110′ givesthe customer access to telephone services yet only consumes airlinkresources when the telephone services are active. Network providerstherefore achieve significant improvements in airlink usage efficiencyyet are not required to modify or overhaul conventional interfaces withthe business customer's equipment (e.g., no changes need to be made toPBX equipment). In addition, the business gateway 142′ can support HSSIrouter and 10-BaseT data interfaces to a corporate LAN thereby providingconvenient Internet and wide area network (WAN) connectivity for thebusiness customer. The business gateway 142′ will also enable a networkprovider to provision “frame-relay” data services at the customer'ssite. The business gateway 142′ can support symmetrical interface speedsof 10 Mbps and higher.

Finally, the CPE 110′ facilitates the transmission of various types ofvideo services to the business user. The video services preferablyprimarily include distance learning and video conferencing. However, inaddition, the business CPE 110′ can include ISDN BRI interfaces capableof supporting conventional video conferencing equipment. Using theseinterfaces, the business users will have the option of either viewing orhosting distance learning sessions at the business site building 144′.

D. Programming the ODU

In one embodiment, the ODU is programmable across the cable 129. Thus,when a software update for the ODU is necessary, the software can beloaded from the IDU. The software update system is preferablyimplemented as part of a bootstrap module in the ODU. The bootstrapmodule manages the following activities of the ODU:—Power-on reset;serial port communication; determination of valid Operational Software;processing of download commands; and programming flash memory. FIG. 13illustrates the overall behavior of an ODU having an update module.

1. Overview of Programming the ODU

After being powered on, the ODU jumps directly to the bootstrap modulewhere it resets its peripherals to a benign setting at a state 1305 andwaits for input from the IDU. This ensures that no errors in downloadedsoftware can prohibit downloading new software.

As shown in FIG. 13, the IDU then sends a control message to the ODUinstructing it to enter mode 7. This forces the ODU bootstrap code tovalidate the code in its flash memory at a state 1310. This validationpreferably includes a checksum test of its memory partitions. If thevalidation function passes, a compatibility function stored in each ofthe partitions is run to verify that the version resident in thepartition is consistent with any other partitions on which it depends.Thus, each individual ODU within the system detects if the combinationof partitions it has is allowable without there ever being aninconsistency in either the IDU or ODU. If the process endssuccessfully, the ODU transitions to mode 7 and transmits a responsemessage back to the IDU. If any of the tests above fail the ODU returnsto mode 6 and responds with a failure response message.

When the IDU receives the response from the ODU a determination is madeat a decision state 1314 whether the ODU has entered mode 6. Mode 6indicates that the ODU is able to accept download commands from the IDUbut that some problem exists in the ODU's configuration. The softwareupdate process is then invoked at a state 1316 to rewrite software tothe ODU flash memory and remedy the problem. Until the problem isremedied, the ODU remains in mode 6.

If a determination is made at the decision state 1314 that the ODU hastransitioned into mode 7, the initialization process continues normally,and without the need for a new software download. The IDU then sends acontrol message to the ODU instructing it to enter mode 0 for normaloperation.

2. Memory Layout

To support the software update process, the flash memory 161 (FIG. 4) inthe ODU is organized into partitions as illustrated in FIG. 14. Eachpartition has a specific purpose. There is an Operational Softwarepartition 1405 and Uncompressed Calibration Table partition 1410 and aConfiguration Parameters partition 1415. The data in each of thesepartitions can be dynamically downloaded from the IDU to the ODU. Inaddition to these partitions, there is a bootstrap partition 1420 andvector table 1425 that are programmed during manufacture not subject toreprogramming in the field. Of course, it should be realized that memoryin the ODU could be any type of programmable memory, such as a FLASHmemory, a programmable read only memory (PROM), an application specificintegrated circuit (ASIC), a programmable array logic (PAL) integratedcircuit or a field programmable gate array (FPGA)

3. Software Update Process

Referring to FIG. 15, the software update process 1316 is divided intotwo sections. In the first section, the IDU gathers information relatingto the current content of the ODU memory partitions. Then, if possible,the software update process updates any defective partitions with thesoftware it has available.

As shown in FIG. 15, the process 1316 begins at a state 1505 wherein theIDU interrogates the ODU to determine the contents of its memorypartitions. The ODU processes the interrogation requests from the IDU ata state 1510. A determination is then made at a decision state 1515whether or not the contents of the operational partition 1405 of the ODUmatch the operational software stored in the IDU. If the contents domatch, the process 1316 moves to a decision state 1520 wherein adetermination is made whether or not the contents of the calibrationtable partition 1410 match the calibration tables stored in the IDU. Ifthere is a match, the update process terminates at an end state 1522since the ODU programming is intact.

However, if the contents of the operational software partition 1405 donot match with the operational software stored in the IDU, the process1316 moves to a state 1525 wherein a new copy of the operationalsoftware, or a necessary portion of the operational software, isdownloaded to the ODU. This process is described more completely withreference to FIGS. 16–18 below.

In one embodiment, if the IDU has to download any module it downloadsevery module it has. This ensures that after the download process iscomplete, the ODU will contain a consistent set of modules. Thus, afterthe operational software is downloaded at the state 1525, the process1316 continues to download the calibration tables at a state 1530. Oncethe calibration tables are downloaded, the process 1316 terminates atthe end state 1522.

It should be realized that if power is lost during the downloading orprogramming process the ODU might miss some or all of the commands beingsent it by the IDU. This will result in an IDU making a number ofretries to deliver the command and then abandoning the download processand reporting the ODU as failed.

When power is restored the IDU will determine through the processdescribed above that it must restart the software update process.Accordingly, the downloading and programming step will be repeated.

If successive programming attempts fail, this may indicate a moreserious problem with the ODU, the IDU interface or the cable betweenthem.

4. ODU Interrogation

As described above, before the IDU downloads new software to the ODU itdetermines the current contents of the ODU memory partitions. This istrue even when new software is written without regard to currentcontent. This relates to the fact, as described below, that partitionsmaintain a “write count” indicating the number of times the memorypartition has been overwritten. This can be important in embodiments ofthe invention wherein the ODU memory has a predetermined number ofwrites before becoming unstable.

As described previously, on startup the IDU interrogates the ODU todetermine partition information. This provides both version informationand the partition information necessary for properly programming theODU. During this process, the IDU requests partition information forevery partition in the ODU by issuing a Download: Get_Partition_Infocommand message. The IDU takes a partition number as a parameter.Partitions are numbered 0, 1 and 2 corresponding to the operationalpartition, calibration partition and configuration partition asdescribed earlier. The ODU then responds with a Download_Ack:Partition_Info_Report response message indicating the content of therequested memory partition.

5. Downloading a Partition

Because of the size and space limitations of the micro controller on theODU, the download process is closely tied to the physical behavior andcharacteristics of the processor. In one embodiment, the microcontroller is a Motorola MC68HC908GP20 high-performance 8-bit microcontroller, and the internal flash memory is programmed in blocks of 64bytes, called rows. The IDU does a comparison of the row it is about towrite with the current contents of the same row in the ODU. If the dataat the target ODU row is the same as the data about to be written, theIDU does not write the row. This prevents the IDU from wasting writecycles by writing the same data to a row in the ODU memory partition.However, if the IDU row data that is about to be written differs fromthe target row data currently stored in the ODU, the IDU will instructthe ODU to write that row to the ODU.

Moreover, because in this embodiment the micro controller contains only512 bytes of RAM for all variables, stack and buffers, the protocolbetween ODU and IDU limits the size of a packet to 16 bytes. Of course,this invention is not limited to this exemplary processor, and othersimilar processors are anticipated to function in a similar manner.

In this embodiment, the basic download packet control message from theIDU to the ODU contains 8 data bytes and the offset within a RAM bufferwhere the bytes are to be placed within the flash memory partition.After 64 bytes (one row) have been sent across the cable 129, the IDUinstructs the ODU to write data to the target row within the flashmemory. The ODU responds to each command message so the IDU can confirmthat data has been written successfully.

The programming process repeats until the every row and partition thatneeds reprogramming in the ODU memory has been programmed. From the ODUpoint of view there is no difference in programming the OperationalSoftware, the Calibration Tables, or the Hardware Parameters.

It should be noted that the bootstrap partition cannot be programmedusing this method for two reasons. First the bootstrap module is thecode being executed to write to flash, so the program would beeffectively overwriting itself. Second, any failures during the writeprocess would potentially leave partially written bootstrap instructionswhich would lead to problems the next time the ODU was booted.

6. Calibration Tables

In one embodiment, the calibration tables are embedded within theprogrammed software in the IDU and are formatted in a compressed manner.These tables are then uncompressed by the IDU and stored to the“Calibration Tables” partition within the ODU memory block. The linkagebetween Operational Software and Calibration Tables is accomplishedprocedurally through a jump table in the partition header, as describedbelow. This allows for the flexibility of adding or moving tables in themodule without having to revise otherwise unchanged OperationalSoftware.

The partitions for Operational Software and Calibration Tables arepreferably sized equally so that if necessary in the future theirpositions can be transposed.

7. Modifying Calibration and/or Hardware Parameters

One process for modifying any of calibration or hardware parametersmaintained in the ODU is described below. The process utilizes the factthat when the operational software is running the ROW buffer is used tomaintain the current values of both sets of parameters.

Once an initial image of the calibration and hardware parameters hasbeen retrieved, any and all parameters can be set as often as necessary.When satisfactory values have been achieved a single save_to_flashcommand from the IDU causes all the current settings of both calibrationand hardware parameters to be saved to the flash memory in the ODU.

8. Modifying ID Strings

In addition, the described below is process for modifying any of the IDstrings maintained in the ODU. As is apparent, the ODU itself does not“know” anything about the nature or content of the string. The ODU onlyunderstands how to retrieve data from memory and write it back again.Since the process retrieves the entire string from the ODU, the stringmay be divided into several segments. This allows, for example, theserial number, date of manufacture, time and result of testing to beadded to the string as necessary.

9. Partition Headers

At the beginning of each partition is a partition header. The tablebelow illustrates the content and layout of the header. It is designedto fulfill three capabilities. It allows the bootstrap module torecognize properly downloaded partitions, and their revision levels; itprovides the bootstrap module with the information it needs to reportpartition contents to the IDU; and it provides a jump table to be usedas calling mechanism to allow modules to call functions in one anotherwithout having to know where in the module the function exists.

TABLE 32 Layout of Headers Name Size Meaning Partition_Write_Count 2 Thenumber of times the partition has been overwritten (GP-20 range 0 . . .99) GP-32 range 0 . . . 9999 Partition 2 A CRC-16 value forWrite_Count_CRC Partition_Write_Count Module_CRC 2 A CRC-16 value forthe module calculated from Module_Length for Module_Length bytesModule_Length 2 The number of bytes in the modulePartition_Header_Layout 1 The format of the partition header (1)Module_type 1 The kind of module this is = Partition empty 0xFF =Partition empty ‘O’ = ODU operational software ‘C’ = Calibration tables‘B’ = Bootstrap code ‘H’ = Hardware Parameters others = future useModule_Version_Number 1 The version number of this module Filler 21 Empty space to ensure the jump table starts at 32 Jump_Table_Layout 1The format of the jump table (1) Partition_Content_Address 2 The addressof the first byte after the partition header Module_Entry_Point 3 Firstbyte is a JMP instruction, next two are the Address of the firstinstruction in the module Jump_Table_Entries 3*N Successive jump tableentries containing JMP <function address>

The jump table entries provide a means for different modules to calleach other without creating link-time dependencies. The most basicdependency in a function call is the address of the function beingcalled. The jump table provides a constant known address (the offsetfrom the start of the partition) where the caller can always call and beassured that the callee will be invoked. Within the module the calleecan move from revision to revision with impunity so long as the offsetin the jump table does not change.

As one example: The bootstrap module exports the function RxSci—whichreceives bytes on the SCI port, assembles them into packets and reportswhen a complete packet as been received. The jump table provides a wayfor the Operational Software to call the RxSci function in the bootstrapmodule without knowing precisely where the code resides—all it must knowis the jump table entry number and the parameters required for thefunction call. This allows flexible development of modules withouthaving to tie specific addresses to specific functions.

10. The Bootstrap Module

This section describes in detail how the bootstrap code operates, andinteracts with the partitions and their content described earlier. Thisis done by walking through the startup process from the moment power isapplied.

For the ODU to operate correctly, it is programmed during manufacturewith at least the bootstrap code and a Download Module. When power isapplied the processor jumps to the address specified in reset vector at$FFFE, and $FFFF. The reset vector points to the first executableinstruction in the Bootstrap Module. Below is some example C pseudo-codeillustrating the bootstrap code's behavior.

The code determines which partitions are valid by performing a CRC checkon each partition according to its header information. If the CRC iscorrect, it enters its address in the module base table in RAM. If amodule is absent its entry contains 0. Once all partitions have beenchecked, the bootstrap module waits for commands from the IDU.

Exemplary C pseudo-code for the process is shown below:

typedef unsigned int *address; typedef unsigned int uint16; # defineEMPTY_PARTITION 0 # define ORPERATIONAL_SOFTWARE ‘O’ # defineCALIBRATION_TABLE S ‘C’ # define BOOTSTRAP_CODE ‘B’ # define HARDWARE_PARAMETERS ‘H’ typedef struct { uint8  instruction; /* Normally this isa JMP, ho the */ /* entry is emp fine! */ uint16  address; }jump_table_entry_t; typedef struct { uint16 crc_16; uint8 header_format; uint8  write_count; uint16 length_in_bytes; char  type;uint8 version; uint8 filler [24]; uint8 n_jump_table_entries;jump_table_entry_t jump_table [1]; /* All partitions h entry */ /* somemay have m */ } ODU_partition_header_t; int ODU_partition_is_valid (ODU_partition_header_t *partition_ptr) { uint16 crc16_state = 0; uint16crc16_temp; int16 crc16_bytes_remaining =partition_ptr−>length_in_bytes_size >crc_16); uint8 *crc16_ptr = ( (uint8 *) part size >crc_16); while ( crc16_bytes _remaining−− > 0) {crc16_temp = crc16_table [ ( ( crc16_state  {circumflex over ( )}0x00ff)]; crc16_state = ( crc16_state >> 8) {circumflex over ( )}crc16_temp; }; return ( crc16_state == partition_ptr−>crc)  ? 0  :  1; }typedef struct { void  *start_address; int maximum_size; }ODU_partition_table_t; # define MAX_PARTITIONS ( 5) constODU_partition_table_t ODU_partitions [MAX_PARTITIONS] = { /* OperationalSoftware */ {0xB000, 0x2000}, /* Calibration Tables */ {0xE000, 0x2000},/* HW Params */ {0xF000, 0x0200}, /* Bootstrap */ {0xF200, 0x0BFF}};ODU_partition_t *find_partition ( char type) { ODU_partition_header_t*p; ODU_partition_header_t *best_partition = 0; int best_version = /* **Loop through all the available partitions looking for partition **containing a module matching “type”. Every time we one we ** check tosee if its more recent than the one we hav it is ** we record it,otherwise go on to the next. */ for ( int i = 0; i < MAX_PARTITIONS;i++) { p = ( ODU_partition_header_t *) ODU_partitions [i].start_address;if ( ( p−>type == type) && ( p−>version > best_version) && (ODU_partition_is_valid (&( ODU_partitions [i])) best_version =p−>version; best_partition = p; } }; return best_partition; } intODU_boostrap_main  ( void)  { /* ** Step 1. ** Find the base address ofeach type of partition and the ** entry in the module base table. Eachentry has a name, ** so code elsewhere can use the name when generatingreferences */ BOOT_BASE = find_partition ( BOOTSTRAP_CODE ); HARDWARE_BASE = find_partition ( HARDWARE _PARAMETER CALIBRATION_BASE =find_partition ( CALIBRATION_TABLE S); OPERATIONAL_BASE = find_partition( OPERATIONAL_SOFTWARE ); /* ** Step 2. ** Now that we've built themodule base table, poll the port as ** the current software does. */while ( TRUE ) { if ( valid_sci_command_recieved ( )) {sci_packet_handler_entry ( ); } /* end if */; } /* end while */; } }

The function ODU_boostrap_main represents the principle actions of thebootstrap module. In the first step, the code determines the baseaddresses for each of the partitions it expects should exist in the ODU.At the next step it enters a polling loop modeling the loop in thecurrent ODU software. The function valid_sci_command_recieved, returnsTRUE when a whole packet has been received through the SCI port, whilethe function sci_packet_handler_entry calls the function associated withthe packet received.

11. Download Operation

This section describes in more detail how the download process operatesand fits into the existing IDU/ODU communication. As described earlier,the basic strategy is to insert the ODU software download process beforenormal IDU/ODU operations begin.

The downloading process preferably operates in a backward compatiblemanner with existing IDU software. In one embodiment, on startup, theIDU software repeatedly interrogates the ODU with either a “MODE” or an“IDENTIFY” command message. When the bootstrap module receives aresponse message other than a download command it checks to see if theOperational Software is available. If the software is available, ittransfers control there immediately. If the Operational Software is notavailable, the ODU responds with an “unexpected command message”response message. Since the Operational Software will be picking up amessage in midstream it will not recognize the remainder of the message,but since the IDU repeats these commands several times, the ODU shouldrecognize the command on its next transmission.

For IDU software that includes commands for reprogramming the ODU, thefirst action of the IDU is to request partition information from theODU. The partition interrogation process is discussed above.

An example of the partition information supplied by the ODU is:

typedef struct { uint8 partition_number; uint16  base_address; uint8type; /* ‘O’ — operational software */ /* ‘B’ — bootstrap code /* ‘C’ —calibration tables   */ /* ‘H’ — HW parameters uint8 is_valid; uint16 write_count; uint8 version_number; }

The partition_number field marks the response message from the ODU withthe request generated by the IDU. This makes the ODU response messagecontext-free in that the IDU does not need to know the context existingat the time the request was made to the ODU. The is_valid fielddetermines whether the partition_number field in the record is valid.When an IDU command message contains a partition number outside therange of valid partitions in the ODU the is_valid in the responsemessage will be FALSE.

The two fields “type” and “version_number” uniquely identify a piece ofcode and its version. These values are used by the IDU to determine if asoftware update is required. The IDU also is given the base address ofeach partition—this is provided by the base_address field. With thisinformation, the IDU can determine which modules can be updated.

The write_count field tells the IDU how many times a partition has beenoverwritten. This is significant since in one embodiment the ODUprocessor flash is limited to a present number of write operations. Inone embodiment, the preset number of write operations is 100. Keepingtrack of the write_count provides useful information particularly in labconditions where test and development ODUs may be programmed relativelyfrequently.

Before the IDU downloads a module to the ODU, the IDU sets thewrite_count in the partition header of the module it is about downloadto the value of the write_count+1 of the partition it is about tooverwrite.

If the IDU determines all modules in the ODU have revisions at least asrecent as the versions available on the IDU, it exits the ODU softwareupdate process and normal IDU/ODU activity proceeds.

If the IDU determines some modules in the ODU are out of date, itinitiates a download procedure for each module that is out of date.

12. Configuration Parameters

The Configuration Parameters area maintains the Calibration Parameters,Hardware Parameters, and ODU text parameters as discussed previously.The area is allocated according to the table below:

TABLE 33 Configuration Parameter Areas Name Start Length DescriptionConfiguration Parameters 0xF000 0x40 Partition Header Partition HeaderHardware Parameters 0xF040 0x20 Items describing hardware CalibrationParameters 0xF060 0x20 Items set as a result of calibration IF module IDstring 0xF080 0x80 String up to 128 characters long MMW ID string 0xF1000x80 String up to 128 characters long Power Supply ID string 0xF180 0x80String up to 128 characters long

The three ID strings are preferably used by external equipment. For thisreason, their layout is unknown to all ODU software. In one embodiment,the ODU provides a space for up to 128 characters for each of the threestrings.

The partition header description for Configuration Parameters does notinclude the ID strings. This avoids having to update the CRC in theheader when anything in any of the strings changes. Since the stringsare not used by any software in the ODU this has no ill effect on ODUperformance.

The hardware and calibration parameters can be used by both thebootstrap and operational software. Because downloading new softwaredoes not occur at the same time as executing the operational software,the row buffer can be used to maintain a RAM copy of both theCalibration and Hardware parameters. Due to this feature, the downloadpacket protocol can be used to alter and save both parameter sets.Accordingly, very little additional software in the ODU is required.Saving the values only requires the IDU to send a command messageinstructing the ODU to save the content of the row buffer to thelocation of the Calibration and Hardware parameters. It also provides aconvenient mechanism for altering calibration parameters in real time,without having to perform a write to flash memory. Only after suitablesettings of values have been reached do the values have to be committedto flash.

The table below provides the layout of the Hardware and CalibrationParameters.

TABLE 34 Hardware and Calibration Layout Parameter Name Type Offset BitsDescription Is_Calibrated C  0 8 if calibration is complete the value is0x A5 otherwise calibration has not been completed Max TX power C  1 8The maximum transmit power for this ODU Min RX power C  2 8 The minimumpower this ODU can receive Tx IF1 VVA C  3 8 The nominal value for theTX IF1 VVA <reserved>  4–60 Future expansion CPU Type H 61 8 The CPUresident on the ODU IF board 20 = 68HC908GP20 32 = 68HC908GP32Synthesizer Chip H 62 8 The type of chip used for the LO generation 1 =LMX 2326 2 = LMX 2372 Frequency Band H 63 8 The band in which the ODUoperates 24 = 24 GHz band 28 = 28 GHz band 31 = 31 GHz band

To access and modify the ODU configuration parameters the “C” pseudocode interface below is illustrated. This interface is implemented onwhichever host access to the parameters was required.

/******************************************************************************* ** ** */ typedef enum {ILLEGAL_PARAM = 0,IS_CALIBRATED_PARAM = 0x1100, MAX_TX_POWER_PARAM = 0x1101,MIN_RX_POWER_PARAM = 0x1102, TX_IF1_VVA_PARAM = 0x1103, ODU_CPU_PARAM =0x113d, SYNTHESIZER_CHIP_PARAM = 0x113e, FREQUENCY_BAND_PARAM = 0x113f,IF_MODULE _ID_PARAM = 0x2000, MMW_MODULE _ID_PARAM = 0x4000, PS_MODULE_ID_PARAM = 0x6000} parameter_ID_type; typedef enum { SUCCESSFUL,ILLEGAL_ROW, ILLEGAL_SIZE, ILLEGAL_OFFSET, CONFIGURATION_SAVE _FAILED }Configuration_Parameter_Error_Codes_Type; /* ** parameter_ID_type: Thisis an enumeration type the tel all the ** functions in this modparameter is being ** accessed. The value provides ** mappinginformation de offset, size and ** which row in the con parameters areathe ** parameter is resident. */ void Set_Calibration_Parameter (parameter_ID_type parameter_id, uint32 /* ** Sets the RAM image of theconfiguration parameter described by ** ‘parameter_id” to the value“value” */ uint32 Get_Calibration_Parameter ( parameter_ID_typeparameter_id); /* ** Returns the RAM image of the configurationparameter described by ** ‘parameter_id” */ void Set_Hardware_Parameter( parameter_ID_type parameter_id, uint32 /* ** Sets the RAM image of thehardware parameter described ** ‘parameter_id” to the value “value” */uint32 Get_Hardware_Parameter ( parameter_ID_type parameter_id); /* **Returns the RAM image of the hardware parameter descri by **‘parameter_id */ int Save_Configuration_Parameters ( void); /* ** Thisoperation instructs the ODU to save the current settings of ** Hardwareand Calibration parameters to flash memory ** Returns 0 if successful,otherwise an error code. */ uint32 Get_Flash_Calibration_Parameter (parameter_ID_type parameter_id); /* ** Returns the value of theconfiguration parameter descri by ** ‘parameter_id. stored in flash. */uint32 Get_Flash_Hardware_Parameter ( parameter_ID_type parameter_id);/* ** Returns the hardware parameter described by ** ‘parameter_id’stored in flash. */ char *Get_Flash_ID_String ( parameter_ID_typeparameter_id, char int /* ** Retrieves the flash value of the id stringdescribed ** ‘parameter_id” in the string pointed to by “text”, up“text_length” −1 ** characters are retrieved from the ODU, the string isalways terminated ** with a NULL. */ void Set_Flash_ID_String (parameter_ID_type parameter_id, char int /* ** Sets the flash value ofthe id string described by ‘parameter_id’ to the ** string pointed to by“text”, the string is assumed be null-terminated. ** Only the first 128characters are written to the ODU. ** ** Note: Setting an ID stringimplies transitioning out operational mode, ** the values of anyHardware or Calibration parameters that have been ** set but not savedwill be lost. */ int Last_Error ( void); /* ** Returns an error codeassociated with the most recent operation performed ** or 0 if no erroroccurred. */

13. ODU Access to Configuration Parameters

One of the first actions that occurs when the Operational Softwareinitializes is copying the values of the Hardware and Calibrationparameters stored in flash to the ROW buffer. After this occurs theoperational software only references parameter values from their RAMlocation. This has several benefits. It ensures that operationalsoftware does not have to support “write” operations to flash memory. Inaddition, the Calibration and Hardware parameters can be changed byexternal means during operation (primarily calibration). Moreover,because the values are stored in RAM the changes take effect as soon aspossible. Also, the three text strings are written to flash using thesame download commands as used for transferring partitions, so noadditional software is required.

14. Base Station Changes—Miscelleneous

The IDU preferably provides approximately 32 k bytes of storage formaintaining a copy of the current ODU download partition. It mayalternately provide an additional 32 k temporarily when a new version isbeing loaded into the IDU, but before the previous version has beendeleted.

E. OTHER EMBODIMENTS

Accordingly, it is to be understood that the invention is not to belimited by the specific illustrated embodiment, but only by the scope ofthe appended claims.

1. Customer premise equipment for use in a wireless communication systemhaving a base station and customer sites, the customer premise equipmentcomprising: an outdoor comprising: a transmit path having first tuneablesub-components; a receive path having second tuneable sub-components; adetector adapted to generate a detector signal; a controller adapted toreceive said detector signal, to tune said first tuneable sub-componentsand said second tuneable sub-components in response to receivedcommands, to transmit information representative of said detector signalin response to a command, and a memory adapted to store instructions tocontrol the operation of the controller; and an indoor unit comprising amodem for modulating/demodulating data transmitted between the basestation and customer sites, said indoor unit further comprising aprocessor adapted to transmit commands to said controller, to detect afailure in the outdoor unit, and if a failure is detected in the outdoorunit then to write new instructions to said memory.
 2. The system ofclaim 1, wherein the memory is selected from a group consisting of aFLASH memory, a programmable read only memory (PROM), an applicationspecific integrated circuit (ASIC), a programmable array logic (PAL)integrated circuit and/or a field programmable gate array (FPGA).
 3. Thesystem of claim 1, wherein the memory comprises a FLASH memory withinthe controller.
 4. The system of claim 1, wherein the processor isadapted to determine the content of the memory prior to storing the newinstructions.
 5. The system of claim 4, wherein the memory comprisesmemory partitions and the processor is adapted to determine the contentof one or more of the memory partitions in the memory.
 6. The system ofclaim 5, wherein processor is adapted to compare the content of the oneor more memory partitions in the outdoor unit with the content of thenew instructions.
 7. The system of claim 6, wherein the processor isadapted to selectively store one or more portions of the instructionsthat differ from the content of the one or more memory partitions to theoutdoor unit.
 8. A system for storing updated software instructions toan outdoor unit in a wireless communication system, wherein the wirelesscommunication system comprises at least one base station and one or morecustomer sites, comprising: an outdoor unit comprising softwareinstructions stored in a memory, the memory comprising memorypartitions; an indoor unit comprising a copy of the stored softwareinstructions; and first instructions within the indoor unit fordetecting a failure in the outdoor unit, determining one or morelocations of one or more of the memory partitions in the memory and,responsive to said failure, storing new software instructions to thememory in said outdoor unit based, at least in part, on said one or morelocations.
 9. The system of claim 8, wherein the memory is selected froma group consisting of a FLASH memory, a programmable read only memory(PROM), an application specific integrated circuit (ASIC), aprogrammable array logic (PAL) integrated circuit and/or a fieldprogrammable gate array (FPGA).
 10. The system of claim 8, wherein thememory comprises a FLASH memory within a controller.
 11. The system ofclaim 8, wherein the first instructions comprise instructions fordetermining the one or more locations of the one or more memorypartitions prior to storing the new software instructions.
 12. Thesystem of claim 8, wherein the first instructions comprise instructionsfor comparing contents of at least one of the one or more memorypartitions in the outdoor unit with contents of the new softwareinstructions.
 13. The system of claim 12, wherein the first instructionscomprise instructions for selectively storing portions of the softwareinstructions that differ from said contents of said at least of said oneor more memory partitions to the outdoor unit.
 14. A method for updatingsoftware instructions in an outdoor unit of a wireless communicationssystem, wherein the wireless communication system comprises a pluralityof base stations and customer sites, comprising: detecting a failure ofthe outdoor unit to properly initialize; reading software instructionsfrom one or more memory partitions in the outdoor unit; comparing theread software instructions with a stored copy the instructions;identifying any altered memory partitions that comprise instructionsdiffering from the stored copy; and storing new software instructions tothe altered memory partitions.
 15. The method of claim 14, wherein thememory partitions are selected from a group consisting of a FLASH memorypartition, a programmable read only memory (PROM) partition, anapplication specific integrated circuit (ASIC) partition, a programmablearray logic (PAL) integrated circuit partition and/or a fieldprogrammable gate array (FPGA) partition.
 16. The method of claim 14,wherein the memory partitions comprise FLASH memory partitions within acontroller.
 17. The method of claim 14, wherein detecting a failurecomprises instructing the outdoor unit to change operational modes andthereafter determining whether the outdoor unit changed operationalmodes.
 18. The method of claim 14, wherein, reading softwareinstructions comprises transmitting frequency shift key modulatedsoftware instructions from the outdoor unit to an indoor unit.
 19. Themethod of claim 14, comprising counting the number of times that amemory partition is written.
 20. The method of claim 19, comprisingdetermining when a predetermined number of memory partition writes hastaken place.
 21. A method for programming an outdoor unit of a wirelesscommunication system, wherein the wireless communication systemcomprises a plurality of base stations and customer sites, comprising:instructing the outdoor unit to change to a designated operational mode;determining whether the outdoor unit changes to the designatedoperational mode, wherein a determination that the outdoor unit did notchange indicates an outdoor unit failure; reading software instructionsfrom one or more memory partitions in the outdoor unit; comparing theread software instructions with a stored copy the instructions;identifying any altered memory partitions that comprise instructionsdiffering from the stored copy; and storing new software instructions tothe altered memory partitions.
 22. The method of claim 21, wherein thememory partitions are selected from a group consisting of a FLASH memorypartition, a programmable read only memory (PROM) partition, anapplication specific integrated circuit (ASIC) partition and/or a gatearray (FPGA) partition.
 23. The method of claim 21, wherein the memorypartitions comprise a FLASH memory partitions within a controller. 24.The method of claim 21, wherein instructing the outdoor unit to changeoperational modes comprises sending a control message to the outdoorunit.
 25. The method of claim 21, wherein reading software instructionscomprises transmitting frequency shift key modulated softwareinstructions from the outdoor unit to an indoor unit.
 26. The method ofclaim 21, comprising counting the number of times that a memorypartition is written.
 27. The method of claim 26, comprising determiningwhen a predetermined number of memory partition writes has taken place.